package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 29400
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-05-17 11:37:39
* @Entity com.zzyl.entity1.User
*/
@Mapper
public interface UserMapper {

    //分页需要处理岗位编号
    Page<UserVo> userPage(UserDto userDto);

    //添加
    int insert(User user);
    //删除用户
    void deleteByUserId(Long userId);
    @Select("select * from sys_user where username = #{username}")
    User login(String username);
}
